<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/views1/DTD/views1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<p:dialog widgetVar="dialogoNovoAssunto" modal="true"
		width="500" closable="true" header="Cadastrar Assunto"
		minWidth="500" >
		<h:form id="formDialogoNovoAssunto">
		<div class="dialogo_container_18">
			<div class="dialogo_grid_18">
				<p:messages id="messageAssuntos" />
			</div>
			<div class="dialogo_grid_3">Nome</div>
			<div class="dialogo_grid_15">
				<p:inputText value="#{provaBean.assuntoInstance.nome}" styleClass="dialogo_width_15" 
					required="true" requiredMessage="O campo 'Nome' é obrigatório!"/>
			</div>
			<div class="dialogo_grid_18 divHr"></div>
			<div class="dialogo_grid_18 right">
				<p:commandButton value="Salvar" action="#{provaBean.salvarAssunto}"
					update="@form" oncomplete="dialogoNovoAssunto.hide()" />
				<p:commandButton value="Desisir" type="button" onclick="dialogoNovoAssunto.hide()" />
			</div>
		</div>
		</h:form>
	</p:dialog>
</f:view>